package test;

public class test6 {
    public static void main(String[] args) {
        String str=" j   sojoij  sje   ";
        System.out.println(str.replaceAll("\\s+", ""));
    }
}
